﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using EPiBoost.Core.Infrastructure.Interfaces.Model;
using EPiBoost.Core.Infrastructure.Interfaces.Repositories;

namespace EPiBoost.Core.Infrastructure.Repositories
{
	public class InMemoryExceptionLogRepository : InMemoryRepository,  IExceptionLogRepository
	{
		public void Add(ILogItem logItem)
		{
				base.Add(logItem);
		}

		public IQueryable<ILogItem> GetQuery()
		{
			return base.GetQuery<ILogItem>();
		}

		public IQueryable<ILogItem> GetAll()
		{
			return base.GetAll<ILogItem>();
		}

		public IQueryable<ILogItem> Find(Expression<Func<ILogItem, bool>> predicate)
		{
			return base.Find<ILogItem>(predicate);
		}

		public ILogItem Single(Expression<Func<ILogItem, bool>> predicate)
		{
			return base.Single<ILogItem>(predicate);
		}

		public ILogItem First(Expression<Func<ILogItem, bool>> predicate)
		{
			return base.First<ILogItem>(predicate);
		}

		public void Delete(ILogItem entity)
		{
			base.Delete(entity);
		}
	}
}
